import jsonp from 'common/js/jsonp'
import {commonParams, options} from './config' //配置jsonp公共配置


export function getRecommend() { //获取首页的轮播图 XHR JS
  const url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg'

  const data = Object.assign({}, commonParams, { //系统公共的参数
    platform: 'h5',
    uin: 0,
    needNewCode: 1
  })

  return jsonp(url, data, options)
}
